how to create dynamic button in c